-- GENERATED SPELL FOR [Dark Iron Demolitionist] --


function spell0_1054(pUnit, Event) --@Bomb,n/a--
pUnit:FullCastSpellOnTarget(8858,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1054', 2000, 1)
end

function spell1_1054(pUnit, Event) --@Gift of Ragnaros,Self--
pUnit:FullCastSpellOnTarget(7891,pUnit)
pUnit:RegisterEvent('Sorts_1054', 645, 1)
end

function Sorts_1054(pUnit, Event)
local choix_sorts_1054 = math.random(0, 1)
if choix_sorts_1054 == 0 then
pUnit:RegisterEvent('spell0_1054', 1, 1)
end
if choix_sorts_1054 == 1 then
pUnit:RegisterEvent('spell1_1054', 1, 1)
end
end

function mob1054_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1054', math.random(1500, 3000), 1)
end

function mob1054_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1054_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1054_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1054, 1, 'mob1054_Action')
RegisterUnitEvent(1054, 2, 'mob1054_Leave')
RegisterUnitEvent(1054, 3, 'mob1054_Kill')
RegisterUnitEvent(1054, 4, 'mob1054_Die')
